package com.hsbc.dev.teamo4.sms.sm.po;

import com.hsbc.dev.teamo4.sms.common.base.EntityBean;
import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @author:Cady
 * @version:
 * @Project: permission_manage
 * @Package: com.hsbc.dev.teamo4.sms.sm.po
 * @Description:
 * @Date date: 2018-07-25
 */
public class Menu extends EntityBean {

    @NotBlank
    private String id;
    @NotBlank(message = "the menuName can be not blank")
    private String menuName;
    @NotBlank(message = "the menuName can be not blank")
    private String menuHref;
    @NotNull(message = "the menuLevel can be not null")
    private String menuLevel;
    @NotNull(message = "the menuOrder can be not null")
    private Integer menuOrder;
    @NotBlank(message = "the menuParentId can be not blank")
    private String menuParentId;

    public Menu() {
    }

    public String getId() {
        return id;
    }

    public String getMenuName() {
        return menuName;
    }

    public String getMenuHref() {
        return menuHref;
    }

    public String getMenuLevel() {
        return menuLevel;
    }

    public Integer getMenuOrder() {
        return menuOrder;
    }

    public String getMenuParentId() {
        return menuParentId;
    }

    public void setId(String id) {
        this.id = id;
    }

    public void setMenuName(String menuName) {
        this.menuName = menuName;
    }

    public void setMenuHref(String menuHref) {
        this.menuHref = menuHref;
    }

    public void setMenuLevel(String menuLevel) {
        this.menuLevel = menuLevel;
    }

    public void setMenuOrder(Integer menuOrder) {
        this.menuOrder = menuOrder;
    }

    public void setMenuParentId(String menuParentId) {
        this.menuParentId = menuParentId;
    }

    @Override
    public String toString() {
        return "Menu{" +
                "id='" + id + '\'' +
                ", menuName='" + menuName + '\'' +
                ", menuHref='" + menuHref + '\'' +
                ", menuLevel=" + menuLevel +
                ", menuOrder=" + menuOrder +
                ", menuParentId='" + menuParentId + '\'' +
                super.toString()+'\'' +
                '}';
    }
}
